//
//  MyDocument.h
//  iPhone Backup Slurp
//
//  Created by Bob Newhart on 10/15/08.
//  Copyright Geekspiff 2008 . All rights reserved.
//


#import <Cocoa/Cocoa.h>

@interface MyDocument : NSDocument {
	NSMutableAttributedString *				_attributedContents;
	NSString *								_path;
	NSString *								_saveFileName;
}

- (BOOL)appendData: (NSData *)data error: (NSError **)outError;
- (void)appendContents: (NSString *)contents;
- (void)appendAttachment: (id)attachedObject;
- (void)appendFileAttachment: (NSData *)data name: (NSString *)name;

- (void)createReadError: (NSError **)outError descriptionKey: (NSString *)descriptionKey format: (NSString *)format;
- (NSString *)temporaryFilePath;

@property (readonly) NSAttributedString *	attributedContents;

@end
